package com.qqtech.qquan.delivery.enums;
/**
 * 状态:1-待入库;2-待签收;3-已签收
 * @author ami
 *
 */
public enum DeliveryOrderStatusDictEnum {
	NoStorage(1),
	NoSign(2),
	Signed(3);
    int code;

    DeliveryOrderStatusDictEnum (int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }
    
    public static boolean isInScope(Integer code) {
		if (code == null) {
			return false;
		}
		DeliveryOrderStatusDictEnum[] arrEnum = DeliveryOrderStatusDictEnum.values();
		for (DeliveryOrderStatusDictEnum e : arrEnum) {
			if (e.code == code.intValue()) {
				return true;
			}
		}
		return false;
	}
}

